package com.example.livingadminmaster.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;

@TableName("dormitory_admin_info")
public class Dormitory {
    /**
     * 宿舍管理员工号
     */
    @TableId(value = "dormitory_admin_id",type = IdType.ASSIGN_ID)
    private long dormitoryAdminId;
    /**
     * 用户名
     */
    private String username;
    private String password;
    private int age;
    private boolean gender;
    private String phone;
    /**
     * 宿舍号
     */
    private String roomNumber;
    /**
     * 宿舍楼栋
     */
    private String building;
    /**
     * 负责宿舍楼
     */
    private String dormBuilding;
    private LocalDateTime lastLogin;
    private boolean status;
    @TableField(fill = FieldFill.INSERT) //插入时填充字段
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE) //插入和更新时填充字段
    private LocalDateTime updateTime;
    public long getDormitoryAdminId(){return dormitoryAdminId;}
    public String getUsername(){return username;}
    public String getPassword(){return password;}
    public int getAge(){return age;}
    public Boolean getGender(){return gender;}
    public String getPhone(){return phone;}
    public String getRoomNumber(){return roomNumber;}
    public String getBuilding(){return building;}
    public String getDormBuilding(){return dormBuilding;}
    public LocalDateTime getLastLogin(){return lastLogin;}
    public boolean getStatus(){return status;}
    public LocalDateTime getCreateTime(){return createTime;}
    public LocalDateTime getUpdateTime(){return updateTime;}
    public void setDormitoryAdminId(long dormitoryAdminId){this.dormitoryAdminId = dormitoryAdminId;}
    public void setUsername(String username){this.username = username;}
    public void setPassword(String password){this.password = password;}
    public void setAge(int age){this.age = age;}
    public void setGender(boolean gender){this.gender = gender;}
    public void setPhone(String phone){this.phone = phone;}
    public void setRoomNumber(String roomNumber){this.roomNumber = roomNumber;}
    public void setBuilding(String building){this.building = building;}
    public void setDormBuilding(String dormBuilding){this.dormBuilding = dormBuilding;}
    public void setLastLogin(LocalDateTime lastLogin){this.lastLogin = lastLogin;}
    public void setStatus(boolean status){this.status = status;}
    public void setCreateTime(LocalDateTime createTime){this.createTime = createTime;}
    public void setUpdateTime(LocalDateTime updateTime){this.updateTime = updateTime;}
}
